package com.heart.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
public class Answer implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value="tc_answer_id",type = IdType.AUTO )
    private Integer answerId;
    /**
     * 题目类型
     */
    private String questionType;
    /**
     * 题目id
     */
    private Integer detailId;
    /**
     * tb_answer_main的主键
     */
    private Integer mainId;@TableField(select = false, insertStrategy = FieldStrategy.NEVER)
    private List<AnswerDetail> answerDetailList;

}
